Original address: [PHP]-performance acceleration-turn on OpcachePHP7 has been released as the largest version upgrade in PHP10 years, the biggest performance upgrade, PHP7 in the multi-release test showed a significant performance improvementFirst,
PHP cache plug-in Zend Opcache (replacing APC)
Introduction:
Zend Opcache and APC are PHP code accelerators, which cache the compilation results of PHP source code and compare the time mark when calling again. if no changes are made, cache data is
0x00 Preface
Translated from this blog
In this article, we will look for strategies to detect and analyze malicious software hidden in the Opcache file. If you haven't seen us before about hiding the binary Webshell in the PHP7 opcache file, we
First, the principle of OpcacheSecond, Opcache installationThree, Opcache configuration instructionsIv. Opcache Loading takes effectFive, Opcache soft link release effective1.OPCAHCE principleOptimizer+ is the first and fastest opcode caching tool
PHP enables opcache to improve Code Performance
PHP enables opcache to improve Code Performance
APC is the best-performing code cache in PHP5.4 and earlier versions. However, after PHP is upgraded to 5.5 or above, APC is no longer valid. The Zend
Before we start Opcache, let's introduce the compilation and explanation:The compiler compiles each statement of the source program into a machine language and saves it as a binary file so that the runtime computer can run the program directly in
Directory
Trait Trait
Generator
Closed Package
Zend Opcache
PHP development for so many years, technology, architecture has been revolutionized, understand the modern PHP is very important, recently in the model PHP this
Brother Bird said in the blog, improve PHP 7 performance of a few tips, the first is to open Opache, quoting the original:Remember to enable Zend Opcache, because PHP7 even if the Opcache speed is not enabled than PHP-5.6 enabled Opcache faster, so
Eaccelerator cannot be compatible with php5.5.0, fortunately, PHP provides Zend Opcache by default in 5.5.0, So have been accustomed to eaccelerator friends if you want to upgrade to php5.5.0, may be temporarily and Eaccelerator said bye
PHP 7 Installation and Use experience greatly improves performance, strong compatibility, and insufficient Scalability (be cautious when upgrading PHP). Be cautious when installing and using PHP 7.
With the release of PHP 7, the performance and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.